package com.lyl.serviceedu.mapper;

import com.lyl.serviceedu.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程视频 Mapper 接口
 * </p>
 *
 * @author 雷艳玲
 * @since 2022-06-14
 */
public interface VideoMapper extends BaseMapper<Video> {

    @Select(value = "select video_source_id from edu_video where course_id= #{courseId} and video_source_id <> ''")
    List<String> getVodIdsByCourseId(Long courseId);
}
